import QtQuick 2.5
import QtQuick.Controls 2.1
import ".."

RadioButton
{
    id: myFatRadioButton
    height: 80
    width: 80
    property alias name: title.text
    property alias source: icon.source
    scale: pressed ? 0.95 : 1

    indicator: Rectangle
    {
        anchors.fill: parent
        radius: 10
        color: checked ? Common.colorMain : Common.colorText
        Image
        {
            id: icon
            anchors.top: parent.top
            anchors.topMargin: 10
            anchors.horizontalCenter: parent.horizontalCenter
        }
        Text
        {
            id: title
            anchors.top: icon.bottom
            anchors.topMargin: 10
            anchors.horizontalCenter: parent.horizontalCenter
            font.family: Common.fontMain
            font.pixelSize: 14
            color: "white"
        }
    }

    onClicked:
    {
        console.log(name)
        GET_UAC.playBeep()
    }
}
